/**
 * 
 */
package fluo.rtp;

/** This class contains all the fields and variables necessary for transmitting
 *  an rtp stream. This object will return a byte array containing the formatted
 *  data. All that needs to be updated is the sequence number.
 * @author maherbeg
 *
 * Created: Apr 14, 2009
 * Modified: Apr 14, 2009
 */
public class RTPHeader {
	final char v2 = 2;    // version number, always 2, 2 bits
	char p1 = 1; 	// padding = true, last byte of packet == number of bytes that are padding, 1 bit
	char x1 = 0; 	// no extended header, 1 bit
	char cc4 = 0;	// number of contributing source, 4 bits
	
	char m1 = 0;	// marker, when set to 1, tells the receiver to know that the next packet timestamp is discontinuous (RFC2250, 2.1), 1 bit
	char pt7 = 40;	// 40, unsigned payload for our mp3 type, 7 bits
	
	short seq = 0;	// sequence number, 16 bits
	int timestamp = 0; // 32 bits (90khz timestamp, representing the target transmission time of first byte)
	int ssrc = 0;		// 32 bits
	
	MP3Object mp3;
	
	
}
